package com.czjtxy.extraTerm.dao;

import com.czjtxy.extraTerm.entity.DO.Tuser;

import java.sql.SQLException;
import java.util.List;

/**
 * @program: staff-house
 * @author: MingYi
 * @create: 2021/06/30 08:37
 */
public interface TuserDao extends BaseDao {
    Tuser login(String loginName, String pwd) throws ClassNotFoundException, SQLException;

    List<Tuser> getAll() throws ClassNotFoundException, SQLException;

    List<Tuser> getPart(Tuser tuser) throws ClassNotFoundException, SQLException;

    Tuser getOne(int uid) throws SQLException, ClassNotFoundException;

    void updateUser(Tuser tuser) throws SQLException, ClassNotFoundException;

    void deleteUser(int uid) throws SQLException, ClassNotFoundException;

    void addUser(Tuser tuser) throws SQLException, ClassNotFoundException;
}
